package de.idgard.android.addon.ui.services.impl;

import de.idgard.android.addon.ui.services.AddonStateService;
import de.idgard.android.addon.ui.services.dto.ExtendedState;

/**
 * 
 * @author ckaratza
 * 
 */

class AddonStateServiceImpl implements AddonStateService {

	private ExtendedState state = ExtendedState.OFF;

	@Override
	public void configureAddonState(ExtendedState state) {
		this.state = state;
	}

	@Override
	public ExtendedState queryAddonState() {
		return state;
	}

	@Override
	public boolean isAddonON() {
		return state.equals(ExtendedState.ON);
	}

	@Override
	public boolean isAddonOFF() {
		return state.equals(ExtendedState.OFF);
	}

	@Override
	public boolean isAddonONLOGIN() {
		return state.equals(ExtendedState.ON_LOGIN);
	}
}